package com.example.blog.dto.publicDto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageDto {
   private String condition;
   private Integer types;
   @Min( value = 1,message = "下标错误" )
   @NotNull(message = "下标不能为空")
   private Integer index;
}
